const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
    mode: 'development',
    entry: {
        'app': './src/app.js',
        'home':'./src/home.js'
    },
    output: {
        clean: true
    },
    plugins: [
        new HtmlWebpackPlugin({
            title:'page 1',
            template: "./src/index.html",
            inject:'body',
            chunks:'app',
            filename: "app.html"
        }),
        new HtmlWebpackPlugin({
            title:'page 2',
            template: "./src/index2.html",
            inject:'body',
            chunks:'home',
            filename: "home.html"
        }),
    ],
}